package com.ctgu.demo03.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 
 * @TableName t_stocks
 */
@TableName(value ="t_stocks")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StocksEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "stock")
    private Integer stock;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}